<!DOCTYPE html>
<html>
  
<head><meta name="generator" content="Hexo 3.8.0">
  <meta charset="utf-8">
  <meta name="author" content="Amos Zhu">
  
  
  <title>RabbitMQ集群搭建 | Amos的技术博客</title>

  <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">

  
    <meta name="keywords" content="rabbitMQ,rabbitMQ,">
  

  
  <meta name="description" content="rabbitMQ的两种重要特性,异步化提高系统抗峰值能力和系统及功能解耦，这两个特点决定了rabbitMQ在我们的系统中占据了重要的地位，所以为了让RabbitMQ高可用，我们今天就来讲解下RabbitMQ的集群环境搭建">

  

  
    <script src="//cdn.jsdelivr.net/npm/leancloud-storage@3.11.1/dist/av-min.js" async></script>
  

  
    <script type="text/javascript" src="//cdnjs.cloudflare.com/ajax/libs/mathjax/2.7.5/MathJax.js?config=TeX-MML-AM_CHTML" async></script>
  

  
    <script src="//unpkg.com/valine/dist/Valine.min.js" async></script>
  

  

  <script>
  // theme-ad's config script
  // it can be used in every script
  
  window.AD_CONFIG = {
    leancloud: {"appid":"eObxCkTJ6j4GzRxGLgiHyfJa-gzGzoHsz","appkey":"fzRMAFC6MCE11mp7mnvh4Kwe","comment":true,"count":true},
    welcome: {"enable":true,"interval":30},
    start_time: "2019-05-28",
    passwords: ["efe07af7441da2b69c4a41e42e73be4db47f66010a56900788a458354a7373ec", ],
    is_post: true,
    lock: false,
    author: "Amos Zhu",
    share: {"qq":true,"wechat":true},
    mathjax: true,
    page_type: "",
    root: "/blog/"
  };
</script>

  <script src="/blog/vendor/sha256.min.js"></script>
<script src="/blog/js/auth.js"></script>
<script src="/blog/js/index.js"></script>
<script src="/blog/vendor/qrcode.min.js"></script>

  
    <link rel="icon" href="/blog/images/favicon.ico">
    <link rel="apple-touch-icon" href="/blog/images/touch-icon.png">
  

  <link href="//netdna.bootstrapcdn.com/font-awesome/4.7.0/css/font-awesome.min.css" rel="stylesheet">

  <link rel="stylesheet" href="/blog/css/index.css">
<link rel="stylesheet" href="/blog/styles/components/highlight/highlight.css">

  
</head>
  <body>
    <header class="site-header">
  <div class="site-header-brand">
    
      <span class="site-header-brand-title">
        <a href="/blog/">Amos Zhu</a>
      </span>
    
    
      <span class="site-header-brand-motto"> | 当浮躁的心静不下，不妨写些东西或者看会书</span>
    
  </div>
  <div class="site-header-right">
    <nav class="site-header-navigation">
      
        <a href="/blog/" target="_self">首页</a>
      
        <a href="/blog/archives/" target="_self">归档</a>
      
        <a href="/blog/tags/" target="_self">标签</a>
      
        <a href="/blog/categories/" target="_self">分类</a>
      
        <a href="/blog/redis/" target="_self">redis</a>
      
        <a href="/blog/rabbitMQ/" target="_self">rabbitMQ</a>
      
        <a href="/blog/elasticsearch" target="_self">elasticsearch</a>
      
        <a href="/blog/stuff" target="_self">stuff</a>
      
        <a href="/blog/kafka" target="_self">kafka</a>
      
        <a href="/blog/friends/" target="_self">友链</a>
      
        <a href="/blog/about/" target="_self">关于</a>
      
    </nav>
    <div class="site-header-btn">
      
        <a href="https://gitee.com/amos_zhu" target="_blank" id="site-github">
          <i class="fa fa-github-alt"></i>
        </a>
      
      <a href="javascript:void(0);" id="site-search">
        <i class="fa fa-search"></i>
      </a>
      <a href="javascript:void(0);" id="site-nav-btn">
        <i class="fa fa-ellipsis-v"></i>
      </a>
    </div>
  </div>
</header>
<nav class="table-content" id="site-nav">
  <div class="table-content-title">
    <span>导航</span>
  </div>
  <div class="table-content-main">
    <ol class="toc">
      
        <li class="toc-item">
          <a href="/blog/" target="_self">
            首页
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/archives/" target="_self">
            归档
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/tags/" target="_self">
            标签
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/categories/" target="_self">
            分类
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/redis/" target="_self">
            redis
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/rabbitMQ/" target="_self">
            rabbitMQ
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/elasticsearch" target="_self">
            elasticsearch
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/stuff" target="_self">
            stuff
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/kafka" target="_self">
            kafka
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/friends/" target="_self">
            友链
          </a>
        </li>
      
        <li class="toc-item">
          <a href="/blog/about/" target="_self">
            关于
          </a>
        </li>
      
    </ol>
  </div>
</nav>
<div id="site-process"></div>
    <main>
      
  <div class="passage">
  <div class="passage-meta">
    <span>
      <i class="fa fa-calendar"></i>2019-07-16
    </span>
    
      <span>
        | <a href="/blog/categories/rabbitMQ/"><i class="fa fa-bookmark"></i>rabbitMQ</a>
      </span>
    
    
      <span>
        | <i class="fa fa-unlock-alt"></i>UNLOCK
      </span>
    
  </div>
  <h1 class="passage-title">
    RabbitMQ集群搭建
  </h1>
  
  <article class="passage-article">
    <p></p>

<h2 id="应用常识"><a href="#应用常识" class="headerlink" title="应用常识"></a>应用常识</h2><p>一般情况下，一个单机版的rabbitMQ能承受大运1000/s的消息量（跟网络和消息的大小有关，数值存在波动），但是如果是集群环境中，就可以将访问的压力分摊到集群中的其他节点上，增大访问的QPS</p>
<p>RabbitMQ集群中所有的节点都会备份的元数据信息如下：</p>
<ul>
<li>队列元数据</li>
<li>交换机</li>
<li>绑定关系元数据</li>
<li>vhost元数据</li>
</ul>
<h2 id="集群搭建"><a href="#集群搭建" class="headerlink" title="集群搭建"></a>集群搭建</h2><p>首先按照之前的博文<a href="http://amos_zhu.gitee.io/blog/passages/Centos7下RabbitMQ的搭建/">Centos7下RabbitMQ的搭建</a>，我们来在另一个服务器上搭建RabbitMQ的环境，本博文只是演示集群环境的搭建，所以采用了两台服务器来搭建集群环境，如果再添加一台服务器的话，步骤是一样的</p>
<table>
<thead>
<tr>
<th>服务器</th>
<th>IP</th>
<th>节点</th>
</tr>
</thead>
<tbody>
<tr>
<td>RabbitMQ1</td>
<td>192.168.56.105</td>
<td>node1</td>
</tr>
<tr>
<td>RabbitMQ2</td>
<td>192.168.56.106</td>
<td>node2</td>
</tr>
</tbody>
</table>
<ol>
<li>首先我们来修改各个服务器上的hosts文件，让各个节点都互相的识别对方的存在</li>
</ol>
<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 进入的 /etc/hosts 文件中设置hosts文件</span></span><br><span class="line">vi /etc/hosts</span><br><span class="line"></span><br><span class="line"><span class="comment">## 添加</span></span><br><span class="line">192.168.56.105 node1</span><br><span class="line">192.168.56.106 node2</span><br></pre></td></tr></table></figure>
<p>修改完成之后，执行下面语句，查看节点是否生效<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br><span class="line">10</span><br><span class="line">11</span><br><span class="line">12</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 启动rabbitmq服务</span></span><br><span class="line">rabbitmq-server -detached</span><br><span class="line"></span><br><span class="line"><span class="comment">## 查看rabbitMQ的集群状态节点的命名是否正确</span></span><br><span class="line">rabbitmqctl cluster_status</span><br><span class="line">.......</span><br><span class="line">Cluster status of node rabbit@node2 ...</span><br><span class="line">    [&#123;nodes,[&#123;disc,[rabbit@node2]&#125;]&#125;,</span><br><span class="line">     &#123;running_nodes,[rabbit@node2]&#125;,</span><br><span class="line">     &#123;cluster_name,&lt;&lt;<span class="string">"rabbit@node2"</span>&gt;&gt;&#125;,</span><br><span class="line">     &#123;partitions,[]&#125;,</span><br><span class="line">     &#123;alarms,[&#123;rabbit@node2,[]&#125;]&#125;]</span><br></pre></td></tr></table></figure></p>
<p><strong>如果不是的话，则需要将<code>/etc/hostname</code>中的主机名设置成节点名称,然后在<code>/etc/hosts</code>中添加对应的节点</strong></p>
<ol start="2">
<li>编辑RabbitMQ的Cookie文件，以确保各个节点的cookie文件使用的是同一个值</li>
</ol>
<p>.erlang.cookie文件路径按照安装方式的不同，可以分为以下的情况：</p>
<p>  1 如果采用解压缩的方式，那么该文件存在的位置在$HOME目录下，即：$HOME/.erlang.cookie<br>  2 如果使用root安装，则位置为：/root/.erlang.cookie，其他用户对应的位置如下：/root/用户名/.erlang.cookie<br>  3 使用rpm方式来安装，则位置为：/var/lib/rabbitmq目录下</p>
<p>找到该文件之后，使用如下的命令来拷贝文件到另一台服务上<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## scp来拷贝文件</span></span><br><span class="line">scp /root/.erlang.cookie node2:/root/.erlang.cookie</span><br></pre></td></tr></table></figure></p>
<ol start="3">
<li>使用<code>rabbitmqctl</code>工具添加集群节点</li>
</ol>
<p>如果想node1作为主节点，然后其余节点作为子节点，则需要在其余节点上执行如下的命令<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 先停止该节点的rabbitmq服务，但是不停止erlang的服务</span></span><br><span class="line">rabbitmqctl stop_app</span><br><span class="line"><span class="comment">## 然后重置所有的节点信息 注意这里的重置会将之前添加的用户信息也重置点，重置之后，需要添加对应的用户，并且赋予用于权限</span></span><br><span class="line">rabbitmqctl reset</span><br><span class="line"><span class="comment">## 添加节点到主节点</span></span><br><span class="line">rabbitmqctl join_cluster rabbit@node1</span><br><span class="line"><span class="comment">## 添加完成之后，需要重启rabbitMQ的服务</span></span><br><span class="line">rabbitmqctl start_app</span><br></pre></td></tr></table></figure></p>
<p>这里有三点是需要注意的：</p>
<p>1.必须先停止子节点的rabbitMQ的服务，但是不能停止erlang的服务</p>
<p>2.节点重置后，之前的用户信息会消失，准确来说是所有非默认的消息都会被重置，所以需要额外添加用户，并且赋予对应的权限</p>
<p>3.添加集群节点完成之后需要重新启动rabbitMQ的服务</p>
<ol start="4">
<li>检测集群是否搭建成功</li>
</ol>
<p>在任意一节点查看<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br><span class="line">5</span><br><span class="line">6</span><br><span class="line">7</span><br><span class="line">8</span><br><span class="line">9</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 查看集群信息</span></span><br><span class="line">rabbitmqctl cluster_status</span><br><span class="line">......</span><br><span class="line">Cluster status of node rabbit@node2 ...</span><br><span class="line">[&#123;nodes,[&#123;disc,[rabbit@node1,rabbit@node2]&#125;]&#125;,</span><br><span class="line"> &#123;running_nodes,[rabbit@node1,rabbit@node2]&#125;,</span><br><span class="line"> &#123;cluster_name,&lt;&lt;<span class="string">"rabbit@node1"</span>&gt;&gt;&#125;,</span><br><span class="line"> &#123;partitions,[]&#125;,</span><br><span class="line"> &#123;alarms,[&#123;rabbit@node1,[]&#125;,&#123;rabbit@node2,[]&#125;]&#125;]</span><br></pre></td></tr></table></figure></p>
<h2 id="集群注意的地方和命令"><a href="#集群注意的地方和命令" class="headerlink" title="集群注意的地方和命令"></a>集群注意的地方和命令</h2><p>上面已经将集群搭建起来了，如果其中任意一个子节点关闭，则在其他节点看不到该节点信息</p>
<p><strong>如果关闭了集群中的所有节点，则需要确保在启动的时候最后关闭的那个节点是第一个启动起来的</strong></p>
<ol>
<li>节点的类型</li>
</ol>
<p>节点类型分为硬盘和内存两个类型，其中内存的性能比较高，但是信息不会持久化，硬盘的具有IO瓶颈，但是信息能持久化，我们默认创建的节点类型就是硬盘型的</p>
<p>我们可以手动修改节点的类型<br><figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 修改节点的类型</span></span><br><span class="line">rabbitmqctl change_cluster_node_type disc</span><br></pre></td></tr></table></figure></p>
<p>在集群中，为了保证信息的完整和持久化，至少需要两个节点是硬盘类型的</p>
<ol start="2">
<li>剔除节点<br>这里提供重置来删除节点<figure class="highlight bash"><table><tr><td class="gutter"><pre><span class="line">1</span><br><span class="line">2</span><br><span class="line">3</span><br><span class="line">4</span><br></pre></td><td class="code"><pre><span class="line"><span class="comment">## 关闭rabbitMQ的服务</span></span><br><span class="line">rabbitmqctl stop_app</span><br><span class="line"><span class="comment">## 重置节点</span></span><br><span class="line">rabbitmqctl reset</span><br></pre></td></tr></table></figure>
</li>
</ol>
<h2 id="rabbitMQ常用的命令"><a href="#rabbitMQ常用的命令" class="headerlink" title="rabbitMQ常用的命令"></a>rabbitMQ常用的命令</h2><table>
<thead>
<tr>
<th>用途</th>
<th>命令</th>
</tr>
</thead>
<tbody>
<tr>
<td>添加虚拟机</td>
<td>rabbitmqctl add_vhost 虚拟机名称</td>
</tr>
<tr>
<td>删除虚拟机</td>
<td>rabbitmqctl delete_vhost 虚拟机名称</td>
</tr>
<tr>
<td>虚拟机列表</td>
<td>rabbitmqctl list_vhosts</td>
</tr>
<tr>
<td>添加用户</td>
<td>rabbitmqctl add_user 用户名 密码</td>
</tr>
<tr>
<td>修改用户密码</td>
<td>rabbitmqctl change_password 用户名 密码</td>
</tr>
<tr>
<td>授权</td>
<td>rabbitmqctl set_permissions -p / 用户名 “.<em>“ “.</em>“ “.*”</td>
</tr>
<tr>
<td>分配角色</td>
<td>rabbitmqctl set_user_tags 用户名 角色名</td>
</tr>
<tr>
<td>用户列表</td>
<td>rabbitmqctl list_users</td>
</tr>
<tr>
<td>删除用户</td>
<td>rabbitmqctl delete_user 用户名</td>
</tr>
<tr>
<td>插件列表</td>
<td>rabbitmq-plugins list</td>
</tr>
<tr>
<td>启动插件</td>
<td>rabbitmqctl enable 插件名</td>
</tr>
<tr>
<td>停止服务（rabbitMQ和erlang)</td>
<td>rabbitmqctl stop</td>
</tr>
<tr>
<td>停止rabbitMQ服务</td>
<td>rabbitmqctl stop_app</td>
</tr>
<tr>
<td>启动服务（rabbitMQ和erlang)</td>
<td>rabbitmq-server -detached</td>
</tr>
<tr>
<td>启动rabbitMQ服务</td>
<td>rabbitmqctl start_app</td>
</tr>
<tr>
<td>集群添加节点</td>
<td>rabbitmqctl join_cluster 节点名称 (–ram)</td>
</tr>
<tr>
<td>集群状态</td>
<td>rabbitmqctl cluster_status</td>
</tr>
<tr>
<td>修改节点类型</td>
<td>rabbitmqctl change_cluster_node_type {disc/ram}</td>
</tr>
<tr>
<td>集群删除节点</td>
<td>rabbitmqctl forget_cluster_node (–offline)</td>
</tr>
</tbody>
</table>
  </article>
  <aside class="table-content" id="site-toc">
  <div class="table-content-title">
    <i class="fa fa-arrow-right fa-lg" id="site-toc-hide-btn"></i>
    <span>目录</span>
  </div>
  <div class="table-content-main">
    <ol class="toc"><li class="toc-item toc-level-2"><a class="toc-link" href="#应用常识"><span class="toc-text">应用常识</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#集群搭建"><span class="toc-text">集群搭建</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#集群注意的地方和命令"><span class="toc-text">集群注意的地方和命令</span></a></li><li class="toc-item toc-level-2"><a class="toc-link" href="#rabbitMQ常用的命令"><span class="toc-text">rabbitMQ常用的命令</span></a></li></ol>
  </div>
</aside>
  
    <aside class="passage-copyright">
      <div>本文作者: Amos Zhu</div>
      
        <div>
          原文链接: 
          <a href target="_blank">http://amos_zhu.gitee.io/passages/RabbitMQ集群搭建/</a>
        </div>
      
      <div>
        版权声明: 本博客所有文章除特别声明外, 均采用 <a href="https://creativecommons.org/licenses/by-nc-sa/4.0/">CC BY-NC-SA 4.0</a> 许可协议. 转载请注明出处!
      </div>
    </aside>
  
  
    <div class="passage-tags">
     
      <a href="/blog/tags/rabbitMQ/"><i class="fa fa-tags"></i>rabbitMQ</a>
    
    </div>
  
</div>

    </main>
    
      
<div class="site-comment-contanier" data-plateform="leancloud">
  
    <p id="site-comment-info">
      <i class="fa fa-spinner fa-spin"></i> 评论加载中
    </p>
    <div id="site-comment"></div>
  
</div>
    
    <div class="site-footer-wrapper">
  <footer class="site-footer">
    
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">博客推荐</h5>
          
            <span class="site-footer-item">
              <a href="http://youzhixueyuan.com/series/java" target="_blank">优知学院</a>
            </span>
          
            <span class="site-footer-item">
              <a href="http://ruanyifeng.com/" target="_blank">阮一峰的个人网站</a>
            </span>
          
        </div>
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">系列教程</h5>
          
            <span class="site-footer-item">
              <a href="http://amos_zhu.gitee.io/blog/redis" target="_blank">Redis系列教程</a>
            </span>
          
            <span class="site-footer-item">
              <a href="http://amos_zhu.gitee.io/blog/rabbitMQ/" target="_blank">RabbitMQ教程</a>
            </span>
          
            <span class="site-footer-item">
              <a href="http://amos_zhu.gitee.io/blog/kafka/" target="_blank">Kafka架构探险</a>
            </span>
          
        </div>
      
        <div class="site-footer-col">
          <h5 class="site-footer-title">抓到我</h5>
          
            <span class="site-footer-item">
              <a href="https://gitee.com/amos_zhu" target="_blank">Gitee</a>
            </span>
          
            <span class="site-footer-item">
              <a href="https://blog.csdn.net/wdcl2468" target="_blank">CSDN</a>
            </span>
          
            <span class="site-footer-item">
              <a href="https://www.jianshu.com/u/2dbe61b1f3c3" target="_blank">简书</a>
            </span>
          
        </div>
      
    
    <div class="site-footer-info">
      <i class="fa fa-clock-o"></i> 本站已稳定运行<span id="site-time"></span>
    </div>
    
      <div class="site-footer-info">
        <i class="fa fa-paw"></i> 您是本站第 <span id="site-count"></span> 位访客
      </div>
    
    
      <div class="site-footer-info">
        <i class="fa fa-at"></i> Email: amoszhu@aliyun.com
      </div>
    
    <div class="site-footer-info">
      <i class="fa fa-copyright"></i> 
      2019 <a href="https://github.com/dongyuanxin/theme-ad/" target="_blank">Theme-AD</a>.
      Created by <a href="https://godbmw.com/" target="_blank">GodBMW</a>.
      All rights reserved.
    </div>
  </footer>
</div>
    <div id="site-layer" style="display:none;">
  <div class="site-layer-content">
    <div class="site-layer-header">
      <span class="site-layer-header-title" id="site-layer-title"></span>
      <i class="fa fa-close" id="site-layer-close"></i>
    </div>
    <div class="site-layer-body" id="site-layer-container">
      <div class="site-layer-input" id="site-layer-search" style="display: none;">
        <div class="site-layer-input-choose">
          <a href="javascript:void(0);" title="Change Search Engine">Google</a>
        </div>
        <input type="text">
        <i class="fa fa-search"></i>
      </div>
      
        <div class="site-layer-reward" id="site-layer-reward" style="display: none;">
          
            <div>
              <img src="/blog/images/wechat.png" alt="WeChat">
              
                <p>WeChat</p>
              
            </div>
          
            <div>
              <img src="/blog/images/alipay.png" alt="AliPay">
              
                <p>AliPay</p>
              
            </div>
          
        </div>
      
      <div id="site-layer-welcome" style="display:none;"></div>
    </div>
  </div>
</div>
    

<div class="bottom-bar">
  <div class="bottom-bar-left">
    <a href="/blog/passages/RabbitMQ面试那点事儿/" data-enable="true">
      <i class="fa fa-arrow-left"></i>
    </a>
    <a href="/blog/passages/必备技能——使用线程池来初始化缓冲队列/" data-enable="true">
      <i class="fa fa-arrow-right"></i>
    </a>
  </div>
  <div class="bottom-bar-right">
    <a href="javascript:void(0);" data-enable="true" id="site-toc-show-btn">
      <i class="fa fa-bars"></i>
    </a>
    
      <a href="#site-comment" data-enable="true">
        <i class="fa fa-commenting"></i>
      </a>
    
    <a href="javascript:void(0);" id="site-toggle-share-btn">
      <i class="fa fa-share-alt"></i>
    </a>
    
      <a href="javascript:void(0);" id="site-reward">
        <i class="fa fa-thumbs-up"></i>
      </a>
    
    <a href="javascript:void(0);" id="back-top-btn">
      <i class="fa fa-chevron-up"></i>
    </a>
  </div>
</div>
    <div id="share-btn">
  
  
  
  
    <a id="share-btn-qq" href="javascript:void(0);" target="_blank">
      <i class="fa fa-qq"></i>
    </a>
  
  
    <a id="share-btn-wechat" href="javascript:void(0);" target="_blank">
      <i class="fa fa-wechat"></i>
    </a>
  
</div>
    


  <script async>
  (function(){
      var bp = document.createElement('script');
      var curProtocol = window.location.protocol.split(':')[0];
      if (curProtocol === 'https') {
          bp.src = 'https://zz.bdstatic.com/linksubmit/push.js';
      }
      else {
          bp.src = 'http://push.zhanzhang.baidu.com/push.js';
      }
      var s = document.getElementsByTagName("script")[0];
      s.parentNode.insertBefore(bp, s);
  })();
  </script>



  <script async>
    (function(){
    var src = (document.location.protocol == "http:") ? "http://js.passport.qihucdn.com/11.0.1.js?":"https://jspassport.ssl.qhimg.com/11.0.1.js?";
    document.write('<script src="' + src + '" id="sozz"><\/script>');
    })();
  </script>


    
  </body>
</html>